package br.com.social.mobile.dao;

import javax.persistence.Query;

import br.com.social.mobile.entities.Parameter;



public class ParameterDAO extends GenericDAO<Parameter>{
    
	public Parameter findByParamName(String dsParamName) {
		try {
			Query query = entityManager
					.createQuery("select p FROM Parameter p where p.dsParamName= :dsParamName");
			query.setParameter("dsParamName", dsParamName);

			return (Parameter) query.getSingleResult();
		} catch (Exception e) {
			return null;
		}
		
	}	

 
}
